package com.prime.common.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class ProjectUtils {

    private static final Logger log = LoggerFactory.getLogger(ProjectUtils.class);


    public static Map<String, Object> getRequestParamsMap(HttpServletRequest request) {
        Map<String, Object> params = new HashMap<String, Object>();

        Set<String> keysSet = request.getParameterMap().keySet();
        for (String key : keysSet) {
            params.put(key, request.getParameter(key));
        }
        return params;
    }

}
